{include file="Public/header" /}
<style>
	.am-dropdown{
		width: 100%;
		margin-left: 30px;
		margin-bottom: 10px;
	}
	.am-dropdown div{
		color: #000;
	}
</style>
<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}" style="overflow: hidden">
	<div class="panel admin-panel" style="background: #fff">
		<br>
		<script>
            //city canshu
            var pid='{$data.pid}';
            var cid='{$data.cid}';
            var aid='{$data.aid}';
            var selectc=true;
            var selecta=true;
		</script>
		<div class="am-dropdown">
			<div class="label">
				<label>{:lang('currency')['city']}</label>
			</div>
			<div class="field">
				{include file="public/city" /}
				{if $error}
					&nbsp;<span style="color: red">请选择城市</span>
				{/if}
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>{:lang('label')['title']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="title" name="title" value="{$data.title}" maxlength="50" style="width: 200px;" placeholder="{:lang('label')['title']}" required/>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>位置</label>
			</div>
			<div class="field">
				经度 <input type="text" class="input input-auto" id="lng" name="lng" value="{$data.lng}" style="width: 150px;" required/>
				纬度 <input type="text" class="input input-auto" id="lat" name="lat" value="{$data.lat}" style="width: 150px;" required/>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>联系电话</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="phone" name="phone" value="{$data.phone}" maxlength="11" placeholder="{:lang('label')['phone']}" required/>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>图片1</label>
			</div>
			<div class="field">
				<input type="text" readonly class="input input-auto" id="image" name="image" value="{$data.image}" size="65" placeholder="{:lang('label')['image']}" required/>
				<span class="addbtn"><button type="button" data-id="image" class="button upload">{:lang('form')['file']}</button></span>
			</div>
		</div>
                <div class="am-dropdown">
			<div class="label">
				<label>图片2</label>
			</div>
			<div class="field">
				<input type="text" readonly class="input input-auto" id="image1" name="image1" value="{$data.image1}" size="65" placeholder="{:lang('label')['image1']}" required/>
				<span class="addbtn"><button type="button" data-id="image1" class="button upload">{:lang('form')['file']}</button></span>
			</div>
		</div>
                <div class="am-dropdown">
			<div class="label">
				<label>图片3</label>
			</div>
			<div class="field">
				<input type="text" readonly class="input input-auto" id="image2" name="image2" value="{$data.image2}" size="65" placeholder="{:lang('label')['image2']}" required/>
				<span class="addbtn"><button type="button" data-id="image2" class="button upload">{:lang('form')['file']}</button></span>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>描述</label>
			</div>
			<div class="field">
				<textarea name="description" id="description" style="min-width: 600px;min-height: 300px;" required>{$data.description}</textarea>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>{:lang('label')['status']}</label>
			</div>
			<div class="field">
				<div class="am-form-group">
					<label class="button {if $data.status == "1"}active{/if}">
						<input name="status" value="1" {if $data.status == "1"}checked="checked"{/if} type="radio">{:lang('currency')['status_1']}
					</label>
					<label class="button {if $data.status == "0" || !$data.status}active{/if}">
						<input name="status" value="0" {if $data.status == "0" || !$data.status}checked="checked"{/if} type="radio">{:lang('currency')['status_2']}
					</label>
				</div>
			</div>
		</div>
               <div class="am-dropdown">
			<div class="label">
				<label>{:lang('label')['type']}</label>
			</div>
			<div class="field">
				<div class="am-form-group">
					<label class="button {if $data.type == "1"}active{/if}">
						<input name="type" value="1" {if $data.type == "1"}checked="checked"{/if} type="radio">咱县头条
					</label>
					<label class="button {if $data.type == "2" || !$data.type}active{/if}">
						<input name="type" value="2" {if $data.type == "2" || !$data.type}checked="checked"{/if} type="radio">咱县书屋
					</label>
				</div>
			</div>
		</div> 
                
                
		<div class="am-dropdown">
			<div class="field">
				<button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
			</div>
		</div>
		<br/>
	</div>
</form>
{include file="Main/menu_footer" /}